package com.website.mybatis.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

@Data
@TableName(value = "sys_role_power")
public class SysRolePower implements Serializable {

    private static final long serialVersionUID = 4345343672504526860L;
    /**
     * 主键自增ID
     */
    @TableId
    private Integer id;
    /**
     * 角色id
     */
    private Integer roleId;
    /**
     * 权限id
     */
    private Integer powerId;

    public SysRolePower() {
    }

    public SysRolePower(Integer roleId) {
        this.roleId = roleId;
    }

	public SysRolePower(Integer roleId, Integer powerId) {
        this.roleId = roleId;
        this.powerId = powerId;
    }

}